﻿namespace Basic.HrRemoteModel.Msg.Model
{
    public class MsgDatum
    {
        /// <summary>
        /// 消息ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 类目
        /// </summary>
        public string Classify { get; set; }

        /// <summary>
        /// 发送人
        /// </summary>
        public MsgEmp FormEmp { get; set; }

        /// <summary>
        /// 消息标题
        /// </summary>
        public string MsgTitle { get; set; }

        public string Tag { get; set; }

        public HrMsgType MsgType { get; set; }


        public Dictionary<string, object> Attrs { get; set; }

        public MsgBody[] Body { get; set; }
        /// <summary>
        /// 超时时间
        /// </summary>
        public DateTime? TimeOut { get; set; }

        public HrMsgStatus MsgStatus { get; set; }

        /// <summary>
        /// 优先级
        /// </summary>
        public HrMsgPriority Priority { get; set; }

        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead { get; set; }

        public string LinkType { get; set; }

        public string LinkPk { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddTime { get; set; }
    }
}
